import request from '../../request/request_axios.js'


/**
 * 获取用户信息
 * @param data
 * @returns {*}
 */
export const getUserInfoAPI = () => {
  return request({
    url: '/userProfiles/info',
    method: 'get',
  });
};

/**
 * 刷新token
 * @param uuid
 * @returns {*}
 */
export const refreshTokenAPI = (uuid) => {
  return request({
    url: '/userProfiles/refreshToken',
    method: 'post',
    params: {
      uuid: uuid,
    }
  });
}

/**
 * 更新密码
 * @param password
 * @returns {*}
 */
export const updatePasswordAPI = (password) => {
  return request({
    url: '/userProfiles/updatePassword',
    method: 'put',
    params:{
      password: password,
    }
  });
};


/**
 * 更新用户信息
 * @param data
 * @returns {*}
 */
export const updateUserInfoAPI = (data) => {
  return request({
    url: '/userProfiles/updateInfo',
    method: 'put',
    data: data
  });
};


